package com.ljx.blog.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-10-16  21:35
 */
@Getter
@AllArgsConstructor
public enum TenantRoleEnum {

    PLATFORM("platform", 0L),
    ADMIN("admin", null),
    USER("user", null);

    private String key;
    private Long value;

    public static String getAdminCode(String code){
        return code + "_" + ADMIN.key;
    }

    public static String getUserCode(String code){
        return code + "_" + USER.key;
    }
}
